import java.util.*;

public class TestSort {
    public static void main(String[] args) {
        int[] arr = new int[1000000];
        Random random = new Random();
        for (int i = 0; i < arr.length; i++) {
            arr[i] = random.nextInt(100000);
        }
        int[] arr2 = arr.clone();
        int[] array = {10,20,8,25,35,6,18,30,5,15,28};
        MySort mySort = new MySort();
        Long start = System.currentTimeMillis();
        System.out.println(Arrays.toString(array));
        mySort.mergeSort2(array);
        System.out.println(Arrays.toString(array));
        Long end = System.currentTimeMillis();
        System.out.println(end-start);

        start = System.currentTimeMillis();
        mySort.quickSort(arr2);
        end = System.currentTimeMillis();
        System.out.println(end-start);

    }
}
